package top.xcxdl.rural.service;

import com.github.pagehelper.PageInfo;
import top.xcxdl.rural.entity.RuralCourseUser;
import top.xcxdl.rural.entity.RuralQuestion;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author Ding
 * @since 2022-05-06
 */
public interface IRuralQuestionService extends IService<RuralQuestion> {

    PageInfo<RuralQuestion> getList(Integer pageNo, Integer pageSize, Integer questionType, String key);

    RuralQuestion getDetailById(Integer questionId);

    int doEdit(RuralQuestion question);

    List<RuralQuestion> getListByIds(List<Integer> ids);

    int doDelete(List<Integer> ids);

    List<RuralQuestion> getListByIdsIgnoreCorrect(List<Integer> ids);

    List<RuralQuestion> getListByUserAndExamIds(List<Integer> ids, RuralCourseUser userId);
}
